import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: () => import('../views/index.vue')
    },
    {
      path: '/add_activity/:id',
      name: 'add_activity',
      component: () =>import('../views/add_activity.vue')
    },
    {
      path: '/addgift/:id',
      name: 'addgift',
      component: () => import('../views/addgift.vue')
    },
    {
      path: '/addsponsor/:id',
      name: 'addsponsor',
      component: () => import('../views/addsponsor.vue')
    },
    {
      path: '/activityList',
      name: 'activityList',
      component: () => import('../views/activityList.vue')
    },
    {
      path: '/giftList',
      name: 'giftList',
      component: () => import('../views/giftList.vue')
    },
    {
      path: '/supportList',
      name: 'supportList',
      component: () => import('../views/supportList.vue')
    },
    {
      path: '/activityDetail/:id',
      name: 'activityDetail',
      component: () => import('../views/activityDetail.vue')
    },
    {
      path: '/contentCheck',
      name: 'contentCheck',
      component: () => import('../views/contentCheck.vue')
    },
    {
      path: '/complainRecord',
      name: 'complainRecord',
      component: () => import('../views/complainRecord.vue')
    },
    {
      path: '/memberDetail/:id',
      name: 'memberDetail',
      component: () => import('../views/memberDetail.vue')
    },
    {
      path: '/memberList',
      name: 'memberList',
      component: () => import('../views/memberList.vue')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/login.vue')
    }
  ]
})
